package com.mine.util;

import org.junit.Test;

import java.util.BitSet;

/**
 * TODO
 *
 * @author wangtonggui
 * @version 1.0.0
 * @since 2021/09/28 18:10
 */
public class BitSetDemos {
  @Test
  public void aa() {
    byte[] bytes = new byte[] {'b'};
    BitSet bitSet = BitSet.valueOf(bytes);
    System.out.println(bitSet);
    System.out.println(new String(bitSet.toByteArray()));
  }
}
